package cn.wolfcode.trip.base.mapper;

import cn.wolfcode.trip.base.domain.StrategyDetail;
import cn.wolfcode.trip.base.domain.StrategyDetail;
import cn.wolfcode.trip.base.query.QueryObject;

import java.util.List;

public interface StrategyDetailMapper {
    int deleteByPrimaryKey(Long id);

    int insert(StrategyDetail entity);

    StrategyDetail selectByPrimaryKey(Long id);

    List<StrategyDetail> selectAll();

    int updateByPrimaryKey(StrategyDetail entity);

    /**
     * 查出所有的大攻略文章
     * 关键字查询
     * @param qo
     * @return
     */
    List<StrategyDetail> selectForList(QueryObject qo);

    /**
     * 根据目录id查出该目录下文章序号最大值
     * @param id
     * @return
     */
    int selectForMaxSequence(Long id);

    /**
     * 千万不要用
     * @return
     */
    StrategyDetail selectByCatalogId();
}